package com.filldream.fastboot.core.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.filldream.fastboot.base.entity.SysDept;
import com.filldream.fastboot.base.request.pc.sysDept.AddDeptSTO;
import com.filldream.fastboot.base.request.pc.sysDept.ModifyDeptSTO;
import com.filldream.fastboot.common.entity.B;
import com.filldream.fastboot.common.entity.R;

import java.util.List;

public interface SysDeptService extends IService<SysDept> {


    B saveDept(AddDeptSTO addDeptSTO);

    R<List<Tree<String>>> tree();

    B modifyDept(ModifyDeptSTO modifyDeptSTO);

    B del(Long deptId);
}
